package cn.edu.scau.cmi.hekaimin.Hibernate.dao;

import java.util.List;
import java.util.Map;

public interface BaseDao<T> {
   
	public void add(T t);
	
	public void update(T t);
	
	public void delete(int id);
	
	public List<T> getAll();
	
	public T findById(int id);
	
	public List<T> findByExample(T t);
	
	public List<T> findByProperty(String propertyName,Object value);
	
	public List<T> findByName(Object name);
	
	
}
